package com.tledu.ssm01.core.convert;




import cn.hutool.core.date.DateUtil;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

/**
 * @author Antg
 * @date 2021/8/13  13:16
 */
public class UserConvert implements Converter<String, Date> {
    @Override
    public Date convert(String s) {
        return DateUtil.parse(s,"yyyy-MM-dd");
    }
}
